const { resolve } = require('path')

const mongoose = require(resolve(__dirname, '../db'))

const BgImgSchema = mongoose.model('bgImgInfo', new mongoose.Schema({
  bgTitle: { // 背景图标题
    type: String,
    trim: true,
    required: true
  },
  imgSrc: { // 图片路径
    type: String,
    trim: true,
    required: true
  },
  isDel: { // 删除状态
    type: Boolean,
    default: false
  }
}))

module.exports = BgImgSchema